<?php 
	$content_id = $params[0];
	//promotion
	$sql = "SELECT * FROM `tbl_promotion` WHERE `content_id` = '$content_id' AND `status` = '1' LIMIT 1";
	$query = mysql_query($sql);
	while($result = mysql_fetch_assoc($query)) {
		$title		= $result['title'];
		$detail		= $result['detail'];
		$image		= $result['image'] ? " <img src=\"/thumb/560/300/zc/contents/promotion/{$result['image']}\" />" : '';
	}
	mysql_free_result($query);
?>